home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 December / chip-cd_2006_12.zip / 12 / Biuro / Sokaris Bankonet 2.0.6.105 / SetupSokarisBankonet.ChipEdition.exe / {app} / firebird.conf < prev    next >
Text File  |  2004-10-18  |  20KB  |  630 lines

  1. #######################################
  2. #
  3. # Firebird configuration file
  4. #
  5. # Comments
  6. # --------
  7. # The # character is used for comments and can be placed anywhere on a
  8. # line.  Anything following the # character on a line is considered a
  9. # comment.
  10. #
  11. # Examples:
  12. #
  13. #    # This is a comment
  14. #    DefaultDbCachePages = 2048   # This is an end-of-line comment
  15. #
  16. # Entries
  17. # -------
  18. # The default value for each entry is listed to the right of the "=".
  19. # To activate an entry, remove the leading "#"s and supply the desired
  20. # value.
  21. #
  22. # Please note, a number of the values are specified in **Bytes** (Not KB).
  23. # Accordingly, we have provided some simple conversion tables at the bottom
  24. # of this file.
  25. #
  26. # There are three types of configuration values: integer, boolean and string.
  27. # Integer
  28. # --------
  29. # Integers is what they sound like, an integral value. Examples:
  30. #   1
  31. #   42
  32. #   4711
  33. # Boolean
  34. # -------
  35. # Boolean is expressed as integer values with 0 (zero) being "false" and
  36. # non-zero is taken to mean "true". For consistency we recommend you
  37. # only use 0/1.
  38. # String
  39. # ------
  40. # Strings are also what they sound like, strings. Examples:
  41. #   RootDirectory  = /opt/firebird
  42. #   RemotePipeName = pipe47
  43. #
  44. #
  45. # Portions of this file have been reproduced/made available with the
  46. # permission of Ann Harrison @ IBPhoenix.
  47. #
  48. #######################################
  49.  
  50. # ==================================
  51. # Settings for all platforms/engines
  52. # ==================================
  53. #
  54. # ----------------------------
  55. # Specify the root directory under which Firebird is installed.
  56. # Can be used to override the OS-specifically determined one.
  57. #
  58. # Type: string
  59. #
  60. #RootDirectory =
  61.  
  62.  
  63. # ----------------------------
  64. # Database Paths/Directories
  65. #
  66. # DatabaseAccess may be None, Full or Restrict. If you choose Restrict, 
  67. # provide ';'-separated trees list, where database files are stored.
  68. # Relative paths are treated relative to RootDirectory entry
  69. # (see above). Default value 'Full' gives full access to all files
  70. # on your site. To specify access to specific trees, enum all required
  71. # paths (for Win32 this may be something like 'C:\DataBase;D:\Mirror', 
  72. # for unix - '/db;/mnt/mirrordb'). If you choose 'None', then only
  73. # databases listed in aliases.conf can be attached.
  74. #
  75. # UNCONTROLLED DATABASE ACCESS MAY COMPROMISE YOUR SYSTEM!
  76. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  77. # DATABASE LOCATIONS!
  78. #
  79. # Type: string (special format)
  80. #
  81. #DatabaseAccess = Full
  82.  
  83.  
  84. # ----------------------------
  85. # External File Paths/Directories
  86. #
  87. # ExternalFileAccess may be None, Full or Restrict. If you choose 
  88. # Restrict, provide ';'-separated trees list, where external files 
  89. # are stored. Relative paths are treated relative to RootDirectory entry
  90. # (see above). Default value 'None' disables any use of external files
  91. # on your site. To specify access to specific trees, enum all required
  92. # paths (for Win32 this may be something like 'C:\ExternalTables', 
  93. # for unix - '/db/extern;/mnt/extern').
  94. #
  95. # NOTE: THE EXTERNAL TABLE ENGINE FEATURE COULD BE USED TO COMPROMISE
  96. # THE SERVER/HOST AS WELL AS DATABASE SECURITY!!
  97. #
  98. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  99. # EXTERNAL TABLE LOCATIONS!
  100. #
  101. # Type: string (special format)
  102. #
  103. #ExternalFileAccess = None
  104.  
  105.  
  106. # ----------------------------
  107. # External Function (UDF) Paths/Directories
  108. #
  109. # UdfAccess may be None, Full or Restrict. If you choose 
  110. # Restrict, provide ';'-separated trees list, where UDF libraries
  111. # are stored. Relative paths are treated relative to RootDirectory entry
  112. # (see above). Default value 'Restrict UDF' provides the same restrictions
  113. # as in FB 1.0. To specify access to specific trees, enum all required
  114. # paths (for Win32 this may be something like 'C:\ExternalFunctions', 
  115. # for unix - '/db/extern;/mnt/extern').
  116. #
  117. # NOTE: THE EXTERNAL FUNCTION ENGINE FEATURE COULD BE USED TO COMPROMISE
  118. # THE SERVER/HOST AS WELL AS DATABASE SECURITY!!
  119. #
  120. # IT IS STRONGLY RECOMMENDED THAT THIS SETTING BE USED TO LIMIT
  121. # EXTERNAL FUNCTION LOCATIONS! SPECIALLY AVOID HAVING 
  122. # COMMON SUBTREES IN UdfAccess & ExternalFileAccess !
  123. #
  124. # Type: string (special format)
  125. #
  126. #UdfAccess = Restrict UDF
  127.  
  128.  
  129. # ----------------------------
  130. # Temporary directories
  131. #
  132. # Provide ';'-separated trees list, where temporary files are stored.
  133. # Relative paths are treated relative to RootDirectory entry
  134. # (see above). Default value is determined using FIREBIRD_TMP,
  135. # TEMP or TMP environment options. Every directory item may have optional
  136. # size argument to limit its storage, this argument follows the directory
  137. # name and must be separated by at least one space character. If the size
  138. # argument is omitted or invalid, then all available space in this
  139. # directory will be used.
  140. #
  141. # E.g.:
  142. # TempDirectories = c:\temp
  143. # or
  144. # TempDirectories = c:\temp;d:\temp
  145. # or
  146. # TempDirectories = c:\temp 100000000;d:\temp 500000000;e:\temp
  147. #
  148. # Type: string (special format)
  149. #
  150. #TempDirectories =
  151.  
  152.  
  153. # ----------------------------
  154. # Number of cached database pages
  155. #
  156. # This sets the number of pages from any one database that can be held
  157. # in cache at once. If you increase this value, the engine will
  158. # allocate more pages to the cache for every database. By default, the
  159. # SuperServer allocates 2048 pages for each database and the classic
  160. # allocates 75 pages per client connection per database.
  161. #
  162. # Type: integer
  163. #
  164. #DefaultDbCachePages = 2048
  165.  
  166.  
  167. # ----------------------------
  168. # In-memory sorting module
  169. #
  170. # The amount of memory allocated for each sort block.
  171. #
  172. # Type: integer
  173. #
  174. #SortMemBlockSize = 1048576
  175.  
  176. #
  177. # The maximum amount of memory to be allocated by the in-memory
  178. # sorting module.
  179. #
  180. # For Classic servers, this setting is defaulted to 8 MB.
  181. # Although it can be increased, the value applies to each client
  182. # connection/server instance and thus consumes a lot of memory.
  183. #
  184. # Type: integer
  185. #
  186. #SortMemUpperLimit = 67108864
  187.  
  188.  
  189. # ----------------------------
  190. # Backward-compatible parameter ordering as it was in FB v1/IB
  191. #
  192. # Type: boolean
  193. #
  194. #OldParameterOrdering = 0
  195.  
  196.  
  197. # ----------------------------
  198. # Boolean evaluation method (complete or shortcut)
  199. #
  200. # If your SQL code depends on side-effects of full evaluation of OR
  201. # and AND statements (right-hand-side terms), even if the expressions
  202. # final result could be determined by just examining the value of the
  203. # first term, you might need to turn this on.
  204. #
  205. # Type: boolean
  206. #
  207. #CompleteBooleanEvaluation = 0
  208.  
  209.  
  210. # ----------------------------
  211. # Determines the number of seconds that the lock manager will wait after a
  212. # conflict has been encountered before purging locks from dead processes 
  213. # and doing extra deadlock scan cycle. Engine detects deadlocks instantly 
  214. # in all normal cases, so this value affects things only if something goes
  215. # wrong. Setting it too low may degrade system performance. 
  216. #
  217. # Type: integer
  218. #
  219. #DeadlockTimeout = 10
  220.  
  221.  
  222. # ----------------------------
  223. #
  224. # How often the pages are flushed on disk
  225. # (for databases with ForcedWrites=Off only)
  226. #
  227. # Number of unflushed writes which will accumulate before they are
  228. # flushed, at the next transaction commit.  For non-Win32 ports,
  229. # the default value is -1 (Disabled)
  230. #
  231. # Type: integer
  232. #
  233. #MaxUnflushedWrites = 100
  234.  
  235. #
  236. # Number of seconds during which unflushed writes will accumulate
  237. # before they are flushed, at the next transaction commit. For non-Win32
  238. # ports, the default value is -1 (Disabled)
  239. #
  240. # Type: integer
  241. #
  242. #MaxUnflushedWriteTime = 5
  243.  
  244.  
  245. # ----------------------------
  246. #
  247. # This option controls whether to call abort() when internal error or BUGCHECK
  248. # is encountered thus invoke post-mortem debugger which can dump core suitable 
  249. # for off-line analysis. When disabled engine tries to minimize damage and 
  250. # continue execution. 
  251. #
  252. # Note that setting this option to 1 makes engine produce traceable coredumps 
  253. # when something nasty like SIGSEGV happens inside UDF. On Windows enabling 
  254. # this option makes engine invoke JIT debugger facilities when errors happen.
  255. #
  256. # Type: boolean
  257. #
  258. #BugcheckAbort = 0
  259.  
  260.  
  261. # ----------------------------
  262. # Client Connection Settings (Basic)
  263. #
  264. # Seconds to wait before concluding an attempt to connect has failed.
  265. #
  266. # Type: integer
  267. #
  268. #ConnectionTimeout = 180
  269.  
  270. #
  271. # Seconds to wait on a silent client connection before the server sends
  272. # dummy packets to request acknowledgment.
  273. #
  274. # DO NOT USE THIS OPTION. It may hang or crash Windows on the client side as 
  275. # explained here: http://support.microsoft.com/default.aspx?kbid=296265
  276. # or may not prevent eventual inactive client disconnection for other OS.
  277. #
  278. # Normally, Firebird uses SO_KEEPALIVE socket option to keep track of 
  279. # active connections. If you do not like default 2-hour keepalive timeout
  280. # then adjust your server OS settings appropriately. On UNIX-like OS's, 
  281. # modify contents of /proc/sys/net/ipv4/tcp_keepalive_*. On Windows, 
  282. # follow instrutions of this article:
  283. # http://support.microsoft.com/default.aspx?kbid=140325
  284. #
  285. # Type: integer
  286. #
  287. #DummyPacketInterval = 0
  288.  
  289.  
  290. # ----------------------------
  291. # TCP Protocol Settings
  292. #
  293. # The TCP Service name/Port number to be used for client database
  294. # connections. 
  295. #
  296. # It is only necessary to change one of the entries, not both.  The
  297. # order of precendence is the 'RemoteServiceName' (if an entry is
  298. # found in the 'services.' file) then the 'RemoteServicePort'.
  299. #
  300. # Type: string, integer
  301. #
  302. #RemoteServiceName = gds_db
  303. #RemoteServicePort = 3050
  304.  
  305. #
  306. # The TCP Port Number to be used for server Event Notification
  307. # messages.  The value of 0 (Zero) means that the server will choose
  308. # a port number randomly.
  309. #
  310. # Type: integer
  311. #
  312. #RemoteAuxPort = 0
  313.  
  314. #
  315. # TCP/IP buffer size for send and receive buffers of both the client
  316. # and server. The engine reads ahead of the client and can send 
  317. # several rows of data in a single packet. The larger the packet size,
  318. # the more data is sent per transfer. Range is 1448 to 32768.
  319. #
  320. # Type: integer
  321. #
  322. #TcpRemoteBufferSize = 8192
  323.  
  324. #
  325. # Either enables or disables Nagle algorithm (TCP_NODELAY option of
  326. # socket) of the socket connection.
  327. #
  328. # Note: Currently this is only active for super server, classic
  329. # server needs an extra wrapper program.
  330. #
  331. # Type: boolean
  332. #
  333. #TcpNoNagle = 0
  334.  
  335. #
  336. # Allows incoming connections to be bound to the IP address of a
  337. # specific network card. It enables rejection of incoming connections
  338. # through any other network interface except this one. By default,
  339. # connections from any available network interface are allowed.
  340. #
  341. # Type: string
  342. #
  343. #RemoteBindAddress = 
  344.  
  345.  
  346. # ----------------------------
  347. # Locking and shared memory parameters
  348. #
  349. # Bytes of shared memory allocated for lock manager. 
  350. # In Classic mode, the size given is used for the initial allocation. The
  351. # table expands dynamically up to the limit of memory. In SuperServer, the
  352. # initial size is also the final size.
  353. # Default is 96K on Linux and Solaris, 256K on Windows.
  354. #
  355. # Type: integer
  356. #
  357. #LockMemSize = 262144
  358.  
  359. #
  360. # Number of semaphores for interprocess communication.
  361. # In non-threading environments, this sets the number of semaphores
  362. # available
  363. #
  364. # Type: integer
  365. #
  366. #LockSemCount = 32
  367.  
  368. #
  369. # When a connection wants to lock an object, it gets a lock request 
  370. # block which specifies the object and the lock level requested. Eack
  371. # locked object has a lock block. Request blocks are connected to those
  372. # lock blocks either as requests that have been granted, or as pending
  373. # requests. 
  374. #
  375. # The settings:
  376. #     1 means locks are granted first come, first served.
  377. #    0 means emulate InterBase v3.3 behavior, where locks are granted 
  378. #      as soon as they are available; can result in lock request
  379. #       starvation.
  380. #
  381. # Type: integer/boolean
  382. #
  383. #LockGrantOrder = 1
  384.  
  385. #
  386. # In Classic, only one client process may access the lock table at any
  387. # time. Access to the lock table is governed by a mutex. The mutex can
  388. # be requested conditionally - a wait is a failure and the request must
  389. # be retried - or unconditionally - the request will wait until it is
  390. # satisfied. This parameter establishes the number of attempts that
  391. # will be made conditionally. Zero value means unconditional mode.
  392. # Relevant only on SMP machines.
  393. #
  394. # Type: integer
  395. #
  396. #LockAcquireSpins = 0
  397.  
  398. #
  399. # Tune lock hash list; more hash slots mean shorter hash chains. Only
  400. # necessary under very high load. Prime number values are recommended.
  401. #
  402. # Type: integer
  403. #
  404. #LockHashSlots = 101
  405.  
  406. # ----------------------------
  407. #
  408. # Bytes of shared memory allocated for event manager.
  409. #
  410. # Type: integer
  411. #
  412. #EventMemSize = 65536
  413.  
  414.  
  415. # ===========================
  416. # SuperServer Engine Settings
  417. # ===========================
  418. #
  419. # ----------------------------
  420. # Which CPUs should be used (Windows Only)
  421. #
  422. # In an SMP system, sets which processors can be used by the server.  
  423. # The value is taken from a bit map in which each bit represents a CPU.
  424. # Thus, to use only the first processor, the value is 1. To use both
  425. # CPU 1 and CPU 2, the value is 3. To use CPU 2 and CPU 3, the value
  426. # is 6. The default value is 1.
  427. #
  428. # Type: integer
  429. #
  430. #CpuAffinityMask = 1
  431.  
  432.  
  433. # ----------------------------
  434. # Settings for the thread scheduler (Windows Only)
  435. #
  436. # The wait time, in milli-seconds (ms), before the priority of:
  437. #    - an inactive thread is reduced to 'Low', or 
  438. #    - an active thread is increased to 'High'
  439. #
  440. # Note: The default value was chosen based on experiments on Intel 
  441. # PIII/P4 processors.  It should be increased for using in the computer
  442. # with lower speed processors.
  443. #
  444. # Type: integer
  445. #
  446. #PrioritySwitchDelay = 100
  447.  
  448. #
  449. # Number of cycles of the scheduler (PrioritySwitchDelay ms) before
  450. # thread are destroyed/closed.  Rather than immediately destroy/closed
  451. # worker threads (which would require a semaphore and blocking call --
  452. # significant overhead), the thread scheduler maintains a pool of the
  453. # threads.  When a thread has completed it's task/work, it is marked as
  454. # idle.  The idle thread is destroyed/closed after X iterations of the
  455. # scheduler loop.
  456. #
  457. # For a server with a very large number of connections (presumably more
  458. # than several hundred) the setting value should be increased. 
  459. #
  460. # The setting represents the number of loop iterations to be made before
  461. # the thread is destroyed/closed.
  462. #
  463. # Type: integer
  464. #
  465. #DeadThreadsCollection = 50
  466.  
  467. #
  468. # Number of additional 'intervals' given to a 'High' priority thread.
  469. #
  470. # Type: integer
  471. #
  472. #PriorityBoost = 5
  473.  
  474.  
  475. # ==============================
  476. # Classic Server Engine Settings
  477. # ==============================
  478. #
  479.  
  480.  
  481. # ==============================
  482. # Settings for Windows platforms
  483. # ==============================
  484. #
  485. # ----------------------------
  486. # Does the guardian restart the server every time it crashes?
  487. #    0 - only start the engine/service once
  488. #    1 - always restart the engine/service if it terminates
  489. #
  490. # Type: integer/boolean
  491. #
  492. #GuardianOption = 1
  493.  
  494.  
  495. #
  496. # ----------------------------
  497. # Priority level/class for the server process.
  498. #
  499. # The values are:
  500. #     0 (Zero) - normal priority,
  501. #     positive value - high priority (same as -B command line option)
  502. #     negative value - low priority.
  503. #
  504. # Note: All changes to this value should be carefully tested to ensure
  505. # that engine is more responsive to requests.
  506. #
  507. # Type: integer
  508. #
  509. #ProcessPriorityLevel = 0
  510.  
  511.  
  512. # ----------------------------
  513. # Local Connection Settings
  514. #
  515. # Size in bytes of one client's portion of the memory mapped file used
  516. # for local connections.
  517. #
  518. # Type: integer
  519. #
  520. #IpcMapSize= 4096
  521.  
  522. #
  523. # The name of the shared memory area used as a transport channel in local protocol.
  524. # The default value is not compatible with IB/FB1. Use value 'InterBaseIPI' to
  525. # restore compatibility, if necessary.
  526. #
  527. # Type: string
  528. #
  529. #IpcName = FirebirdIPI
  530.  
  531. #
  532. # The name of the pipe used as a transport channel in NetBEUI protocol.
  533. # Has the same meaning as a port number for TCP/IP. The default value is
  534. # compatible with IB/FB1.
  535. #
  536. # Type: string
  537. #
  538. #RemotePipeName = interbas
  539.  
  540. # Does the server need to create a (hidden) window used for IPC communication.
  541. # Turn this off to run the server without a window and hence without local protocol.
  542. # Can be used for running a few instances of the server simultaneously on win32.
  543. #
  544. # Type: boolean
  545. #
  546. #CreateInternalWindow = 1
  547.  
  548.  
  549. # ============================
  550. # Settings for Unix/Linux platforms
  551. # ============================
  552. #
  553. #
  554. # UNIX signal to use for interprocess communication 
  555. #
  556. # Type: integer
  557. #
  558. #LockSignal = 16
  559.  
  560.  
  561. # ----------------------------
  562. # Remove protection against opening databases on NFS mounted volumes 
  563. #     ***WARNING*** ***WARNING*** ***WARNING*** ***WARNING*** 
  564. #
  565. # This option removes an important safety feature of Firebird and can 
  566. # cause irrecoverable database corruption. Do not use this option unless 
  567. # you understand the risks and are prepared to accept the loss of the 
  568. # contents of your database.
  569. # Unless this configuration option is changed from 0 to 1, Firebird can 
  570. # open a database only if the database is stored on a drive physically 
  571. # attached to the local computer û the computer running that copy of 
  572. # Firebird. Requests for connections to databases stored on NFS mounted 
  573. # drives are redirected to a Firebird server running on the computer that 
  574. # "owns" the disk. 
  575. # This restriction prevents two different copies of Firebird from opening 
  576. # the same database without coordinating their activities. Uncoordinated 
  577. # access by multiple copies of Firebird will corrupt a database. On a local 
  578. # system, the system-level file locking prevents uncoordinated access to 
  579. # the database file.  
  580. # NFS does not provide a reliable way to detect multiple users of a file on 
  581. # an NFS mounted disk. If a second copy of Firebird connects to a database on 
  582. # an NFS mounted disk, it will corrupt the database.
  583. # Under some circumstances, running a Firebird server on the computer that 
  584. # owns NFS mounted volumes is inconvenient or impossible. Applications that 
  585. # use the "embedded" variant of Firebird and never share access to a database 
  586. # can use this option to permit direct access to databases on NFS mounted 
  587. # volumes.   
  588. # DO NOT ENABLE THIS OPTION UNLESS YOU REALLY KNOW WHAT YOU ARE DOING.
  589. #
  590. # Type: boolean 
  591. #
  592. #RemoteFileOpenAbility = 0 
  593.  
  594.  
  595. #######################################
  596. #
  597. # KB to Bytes Conversion table
  598. #
  599. #######################################
  600. #
  601. #    KB     Bytes         KB     Bytes
  602. #   ----    ---------    ----    ---------
  603. #      1    1024           32    32768
  604. #      2    2048           64    65536 
  605. #      4    4096          128    131072
  606. #      8    8192          256    262144  
  607. #     16    16384         512    524288
  608. #
  609. #######################################
  610. #
  611. # MB to Bytes Conversion table
  612. #
  613. #######################################
  614. #
  615. #    MB    Bytes           MB    Bytes            MB    Bytes
  616. #   ---    ---------      ---    -----------     ---    -----------
  617. #     1    1048576         64    67108864        448    469762048
  618. #     2    2097152        128    134217728       512    536870912
  619. #     4    4194304        192    201326592       640    671088640
  620. #     8    8388608        256    268435456       768    805306368
  621. #    16    16777216       320    335544320       896    939524096
  622. #    32    33554432       384    402653184      1024    1073741824
  623. #
  624.